var express = require('express');
var app = express();

app.all('*',function(req, res, next){
	res.header("Access-Control-Allow-Origin", "*");
	res.header("Access-Control-Allow-Headers","X-Requested-With");
	res.header("Access-Control-Allow-Methods","PUT,POST,GET,DELETE,OPTIONS");
	res.header("X-Powered-By",' 3.2.1')
	res.header("Content-Type","application/json;charset=utf-8");
	next();
});




app.get('/images_icon',function(req, res){
	var images = [
			'https://yanxuan.nosdn.127.net/bca16d6bd92e1a3b3d6b3878eef7a659.jpg?type=webp&imageView&quality=75&thumbnail=750x0',
			'https://yanxuan.nosdn.127.net/5c1c8b367cc1d24f621fa0e59d26e9ab.jpg?type=webp&imageView&quality=75&thumbnail=750x0',
			'https://yanxuan.nosdn.127.net/d0fa0684fc81c6c192cab0987197f686.jpg?type=webp&imageView&quality=75&thumbnail=750x0',
		]
	res.send( images )
});


app.get('/getgoods_icon',function(req, res){
	var goodsIcon =[
		   {
			imgurl:'http://yanxuan.nosdn.127.net/c6fd8835a6400b7da7a016ad85506b69.png',
			goods_txt:'装修墙壁1',
      
		   },{
			imgurl:'http://yanxuan.nosdn.127.net/c6fd8835a6400b7da7a016ad85506b69.png',
			goods_txt:'装修墙壁2'
		   },{
			imgurl:'http://yanxuan.nosdn.127.net/c6fd8835a6400b7da7a016ad85506b69.png',
			goods_txt:'装修墙壁3'
		   },{
			imgurl:'http://yanxuan.nosdn.127.net/c6fd8835a6400b7da7a016ad85506b69.png',
			goods_txt:'装修墙壁4'
		   },{
			imgurl:'http://yanxuan.nosdn.127.net/c6fd8835a6400b7da7a016ad85506b69.png',
			goods_txt:'装修墙壁4'
		   },

	   ]

	res.send( goodsIcon )
});



app.get('/shangpin_icon',function(req, res){

	var shangpinIcon =[
		   {
			imgurl:'https://yanxuan.nosdn.127.net/6c3bd9d885c818b1f73e497335a68b47.png',
			goods_txt:'法国家具-石家庄店',
			tag_txt:'先装修后支付',
			tag_txt2:'样板间'
		   },{
			imgurl:'https://yanxuan.nosdn.127.net/6c3bd9d885c818b1f73e497335a68b47.png',
			goods_txt:'地方家具-石家庄店',
			tag_txt:'先装修后支付',
			tag_txt2:'样板间'
		   },
		    {
			imgurl:'https://yanxuan.nosdn.127.net/6c3bd9d885c818b1f73e497335a68b47.png',
			goods_txt:'阿瑟东家具-石家庄店',
			tag_txt:'先装修后支付',
			tag_txt2:'样板间'
		   },{
			imgurl:'https://yanxuan.nosdn.127.net/6c3bd9d885c818b1f73e497335a68b47.png',
			goods_txt:'啊啊家具-石家庄店',
			tag_txt:'先装修后支付',
			tag_txt2:'样板间'
		   }
	   ]
	   res.send( shangpinIcon )

});


app.listen(5632,function(){
	console.log('5632,装修中间件，已经运行！！！')
});
